/* 1. 创建一个仓库 、引入redux的中间件连接器*/
import { createStore, applyMiddleware,combineReducers } from "redux"
/* 2. 引入 reducer */
import reducer from "./reducers"
/* 3. 引入redux-thunk */
import reduxThunk from "redux-thunk"
/* 4. 使用中间件连接器将redux-thunk传入store构造器 */
export default createStore(combineReducers({reducer}),applyMiddleware(reduxThunk));